package com.aiju.cash.ui.billing.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.aiju.base.fragment.BaseFragment;
import com.aiju.cash.R;

/**
 * @author: 佐为
 * @date: 2017-05-12 10:57
 * @version: V1.0
 * @Description: 商米扫描
 */
public class SUNMIFragment extends BaseFragment{

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_sunmi, container, false);

        root.findViewById(R.id.btn_sunmi).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent("com.summi.scan");
                intent.setPackage("com.sunmi.sunmiqrcodescanner");
                getActivity().startActivityForResult(intent, 100);
            }
        });
        return root;
    }

}
